package com.wva.common.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * TODO 内部调用失败的处理 fallbackFactory = ItemClientFallbackFactory.class
 */
@FeignClient(value = "censor-service")
public interface CensorClient {
    /**
     * 审核文本
     * @param content
     * @return
     */
    @PostMapping("/censor/text")
    Boolean censorText(@RequestParam String content);
}
